import request from '@/utils/request'

// 查询电商仓库列表
export function listWdtwarehouseconfig(query) {
  return request({
    url: '/settlementCenter/basedata/wdtwarehouseconfig/list',
    method: 'get',
    params: query
  })
}

// 查询电商仓库详细
export function getWdtwarehouseconfig(id) {
  return request({
    url: '/settlementCenter/basedata/wdtwarehouseconfig/' + id,
    method: 'get'
  })
}

// 新增电商仓库
export function addWdtwarehouseconfig(data) {
  return request({
    url: '/settlementCenter/basedata/wdtwarehouseconfig',
    method: 'post',
    data: data
  })
}

// 修改电商仓库
export function updateWdtwarehouseconfig(data) {
  return request({
    url: '/settlementCenter/basedata/wdtwarehouseconfig',
    method: 'put',
    data: data
  })
}

// 删除电商仓库
export function delWdtwarehouseconfig(id) {
  return request({
    url: '/settlementCenter/basedata/wdtwarehouseconfig/' + id,
    method: 'delete'
  })
}
